﻿

/// <summary>
/// 服务端告知连接ID，做为客户端id使用
/// 可以扩展，这个协议是客户端连上的时候发的
/// </summary>
class MsgConnectIDRep : BaseProtocol
{
    public uint clientId = 0;
    /// <summary>
    /// 服务端游戏开始时间
    /// </summary>
    public long gameStartTime = 0;
    public override int ProtocolID
    {
        get
        {
            return 21107;
        }
    }
    /// <summary>
    /// Client
    /// </summary>
    protected override void ReadParams()
    {
        clientId = ReadUInt();
        gameStartTime = ReadLong();
    }
    /// <summary>
    /// Server
    /// </summary>
    protected override void WriteParams()
    {
        Write(clientId);
        Write(gameStartTime);
    }
}

